package app;

import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JTextField;

public class GuiView extends JFrame {
	
	public JTable table; 
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public GuiView () {
		super();
		this.setTitle("Lista Giocatori");
		this.setLocation(150, 150);
		this.setSize(350, 500);
		this.setVisible(true);
		
	}
	
	public void addList (Object[] objects){
		JPanel panel = new JPanel();
		JList list = new JList(objects);
		JTextField fiel = new JTextField("Lista Giocatori");
		panel.setLocation(50, 50);
		
		fiel.setVisible(true);
		//list.setBackground(Color.cyan);
		list.setVisible(true);
		panel.add(fiel);
		panel.add(list);
		panel.setVisible(true);
		//add(fiel);
		add(panel);
	}
	
	
	
}
